package io.github.biezhi.elves.model;

import io.github.biezhi.elves.common.Constants;
import io.github.biezhi.elves.utils.StringUtils;
import lombok.Data;

/**
 * 投资族谱信息
 *
 */
@Data
public class FamilyInvestmentInfo {
	//企业唯一id
	private String uniqueId;
	//主体身份代码
	private String pripid;
	//企业名称
	private String entname;
	//金额
	private String FundedAmount;
	//百分比
	private String FundedRate;
	//key值
	private String KeyNo;
	//企业名称
	private String ShortName;
	//父级key值
	private String parentKeyNo;
	//等级
	private Integer Level;
	//地市id
	private String cityId;

	public void setFundedAmount(String fundedAmount) {
		fundedAmount = fundedAmount.trim().replaceAll(Constants.REPLACE_WANYUAN, "");
		this.FundedAmount = StringUtils.formatFundedAmount(fundedAmount);
	}
	
	public static void main(String[] args) {
		FamilyInvestmentInfo familyInvestmentInfo = new FamilyInvestmentInfo();
		familyInvestmentInfo.setFundedAmount("1.11万元");
		System.out.println(familyInvestmentInfo.getFundedAmount());
	}
}